<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>绑定值</title>
    </head>
    <body>

        复选框
        <div id = "app">
            <!--选中后自动变为true-->
            <input type="checkbox" v-model = "checked" id="checked">
            <label for="checked">选择状态 {{checked}}</label>
        </div>

        <script src = "../../vue.min.js"></script>
        <script>
            var app = new Vue({
                el:"#app",
                data:{
                    checked:false
                }
            })
        </script>


    </body>
</html>